Carbon


GetVRefNum

Header: Files.h Carbon status: Supported

Gets a volume reference number from a file reference number.

OSErr GetVRefNum (
    SInt16 fileRefNum, 
    SInt16 *vRefNum
);
Parameter descriptions
fileRefNum

The file reference number of an open file.

vRefNum

On return, a pointer to the volume reference number of the volume containing the file specified by refNum.

function result

A result code.

DISCUSSION

If you also want to determine the directory ID of the specified file’s parent directory, call the PBGetFCBInfoSync or PBGetFCBInfoAsync functions.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)